Skip to content

Do not emit touchCancel at scroll if responderIgnoreScroll is disabled#53955

Closed
zeyap wants to merge 2 commits into
react:mainfrom
zeyap:export-D82675049
Closed

Do not emit touchCancel at scroll if responderIgnoreScroll is disabled#53955
zeyap wants to merge 2 commits into
react:mainfrom
zeyap:export-D82675049

Conversation

@zeyap

@zeyap zeyap commented Sep 25, 2025

Copy link
Copy Markdown
Contributor

Summary:

Changelog:

[Android] [Changed] - Do not emit touchCancel at scroll if responderIgnoreScroll is disabled

Last change #53951 added responderIgnoreScroll prop to ScrollView on android; here is native implementation

Differential Revision: D82675049

Summary:

## Changelog:

[Android] [Changed] - Add responderIgnoreScroll prop on ScrollView

When it's set to true (default), emit touchcancel from native Android ScrollView, instead of letting Responder System terminate responder at scroll. When false, `onTouchCancel` on ScrollView children will not be invoked, but
`onTouchEnd` will be invoked (if touch starts on it) - which aligns with iOS.

Allow opting in this new behavior at component level because (1) touchCancel is meaningful especially on android, and dev may be using onTouchCancel handler, if we enable this everywhere the handler is broken, (2) there's likely some issue in responder system when transferring js responder

Differential Revision: D82761242
Summary:
## Changelog:

[Android] [Changed] - Do not emit touchCancel at scroll if responderIgnoreScroll is disabled

Last change react#53951 added `responderIgnoreScroll` prop to ScrollView on android; here is native implementation

Differential Revision: D82675049
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 25, 2025
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@zeyap has exported this pull request. If you are a Meta employee, you can view the originating diff in D82675049.

@react-native-bot

Copy link
Copy Markdown
Collaborator

Warnings
⚠️ ❗ JavaScript API change detected - This PR commits an update to ReactNativeApi.d.ts, indicating a change to React Native's public JavaScript API. Please include a clear changelog message. This change will be subject to extra review.

This change was flagged as: BREAKING

Generated by 🚫 dangerJS against 4434c2e

@react-native-bot

Copy link
Copy Markdown
Collaborator

This PR is stale because it has been open for 180 days with no activity. It will be closed in 7 days unless you comment on it or remove the "Stale" label.

@react-native-bot react-native-bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Mar 25, 2026
@react-native-bot

Copy link
Copy Markdown
Collaborator

This PR was closed because it has been stalled for 7 days with no activity.

@react-native-bot react-native-bot removed the Stale There has been a lack of activity on this issue and it may be closed soon. label Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants